<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	SoftForm form = (SoftForm)request.getAttribute("command");
	String tab = form.getTab();
%>
<div id="childLayout" class="easyui-layout" data-options="fit:true">
	<div data-options="region:'west',split:true,maxWidth:220,collapsible:true,style:{borderWidth:2},onResize:function(){XF.LAYOUT.resizeWest();}" style="background: #f7f7f9;width:220px;" title=" ">
		 <div class="sidebar">
			<div id="sidebar" class="easyui-accordion" style="width:auto;height:auto;">  
				<div title="软件下载"  style="overflow:auto;padding:10px;">  
					<ul class="site-ul">
						<sec:authorize ifAllGranted="ADD_SOFT">
							<li class="site-li">
								<a s="uploadSoft" href="javascript:XF.Soft.uploadSoft()"><span>上传软件</span></a>
							</li>
						</sec:authorize>
						<li class="site-li">
							<a s="softList" href="javascript:XF.Soft.listSoft()"><span>软件列表</span></a>
						</li>
						<sec:authorize ifAnyGranted="EDIT_NOTICE,DELETE_NOTICE">
							<li class="site-li">
								<a s="manageSoft" href="javascript:XF.Soft.manageSoft()"><span>管理下载</span></a>
							</li>
						</sec:authorize>
					</ul>
				</div>

			</div> 
		</div>
	</div>
	<div id="softCenter" class="settingCenter" data-options="region:'center'" >
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$('#childLayout').layout();
		XF.NAV.activeTab('"<%=tab%>"');
	    $('#sidebar').accordion({
	        animate:true
	    });
	    XF.Soft.listSoft();
	    //XF.Soft.uploadSoft();
	});
</script>